<template>
	<view class="page">
		<view class="content">
			<uni-easyinput maxlength="11" :inputBorder="false" class="uni-mt-5" trim="all" v-model="value" placeholder="请输入手机号" ></uni-easyinput>
		</view>
		 <u-button :hairline="false" type="primary" shape="circle" text="发送验证码" color="#FF2A43" @click="send()"></u-button>
	</view>
</template>

<script>
	export default{
	   data(){
		   return {
			   value:'13043629967',
		   }
	   },
	   methods:{
		  async send(){
			  if(!/^1[3-9]\d{9}$/.test(this.value)) return this.msg("手机号格式不正确")
			  //捞缓存数据 一分钟内操作 请稍后操作
			  this.toPage('/pages/login/code')
			  
		  }	   
	   }
	}
</script>

<style lang="scss" scoped>
	.page{
		padding: 200px 20px;
		.content{
			
			padding-bottom: 10px;
			border-bottom: 2rpx solid #eee;
			margin-bottom: 100px;
			
		}
	}
</style>